package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 地区对象 edu_region
 * 
 * @author ruoyi
 * @date 2024-03-04
 */
public class EduRegion extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区ID */
    @Excel(name = "地区ID")
    private Long regionId;

    /** 上级地区ID */
    @Excel(name = "上级地区ID")
    private Long parent;

    /** 地区名 */
    @Excel(name = "地区名")
    private String regionName;

    /** 邮编 */
    @Excel(name = "邮编")
    private String zipCode;

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setParent(Long parent) 
    {
        this.parent = parent;
    }

    public Long getParent() 
    {
        return parent;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setZipCode(String zipCode) 
    {
        this.zipCode = zipCode;
    }

    public String getZipCode() 
    {
        return zipCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("parent", getParent())
            .append("regionName", getRegionName())
            .append("zipCode", getZipCode())
            .toString();
    }
}
